package com.his.bean;

import java.io.Serializable;

/**
 * 诊所系统操作记录表
 * @TableName dzm_his_operation_log
 */
public class DzmHisOperationLog implements Serializable {
    /**
     * 
     */
    private Integer oid;

    /**
     * 用户ID
     */
    private Integer uid;

    /**
     * 具体操作
     */
    private String operation;

    /**
     * 
     */
    private String details;

    /**
     * 操作时间
     */
    private Integer optime;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getOid() {
        return oid;
    }

    /**
     * 
     */
    public void setOid(Integer oid) {
        this.oid = oid;
    }

    /**
     * 用户ID
     */
    public Integer getUid() {
        return uid;
    }

    /**
     * 用户ID
     */
    public void setUid(Integer uid) {
        this.uid = uid;
    }

    /**
     * 具体操作
     */
    public String getOperation() {
        return operation;
    }

    /**
     * 具体操作
     */
    public void setOperation(String operation) {
        this.operation = operation;
    }

    /**
     * 
     */
    public String getDetails() {
        return details;
    }

    /**
     * 
     */
    public void setDetails(String details) {
        this.details = details;
    }

    /**
     * 操作时间
     */
    public Integer getOptime() {
        return optime;
    }

    /**
     * 操作时间
     */
    public void setOptime(Integer optime) {
        this.optime = optime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DzmHisOperationLog other = (DzmHisOperationLog) that;
        return (this.getOid() == null ? other.getOid() == null : this.getOid().equals(other.getOid()))
            && (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
            && (this.getOperation() == null ? other.getOperation() == null : this.getOperation().equals(other.getOperation()))
            && (this.getDetails() == null ? other.getDetails() == null : this.getDetails().equals(other.getDetails()))
            && (this.getOptime() == null ? other.getOptime() == null : this.getOptime().equals(other.getOptime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOid() == null) ? 0 : getOid().hashCode());
        result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
        result = prime * result + ((getOperation() == null) ? 0 : getOperation().hashCode());
        result = prime * result + ((getDetails() == null) ? 0 : getDetails().hashCode());
        result = prime * result + ((getOptime() == null) ? 0 : getOptime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", oid=").append(oid);
        sb.append(", uid=").append(uid);
        sb.append(", operation=").append(operation);
        sb.append(", details=").append(details);
        sb.append(", optime=").append(optime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}